<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="socket.io.min.js"></script>
    <script src="socket.js"></script>
</head>
<body>
<button id="hel">send</button>

<script>

    var io = new socketio({
        server: 'http://127.0.0.1:1992',
        id: "clienta"
    });
    document.getElementById("hel").onclick = function () {
        io.emit("hello world");
    };
</script>
</body>
</html>